
//----------------------------------------------------------------
// Copyright (C) 2009 上海EZCRS
// 版权所有。 
// All rights reserved.

// 文件名：MsgFailedEventBean.cs
// 文件功能描述：消息失败事件
// 
// 
// 创建标识： kevin  2009-6-5 14:44:50
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using Strive.DataAccess;
using OTA.Notification.Entity;
using OTA.Notification.Entity.Event;

namespace OTA.Notification.Entity.Event
{
    /// <summary>
    ///失败消息事件表[MSG_FAILED_EVENT]实体类
    ///对应表名:MSG_FAILED_EVENT
    /// </summary>
    [Serializable]
	[Table(Name = "MSG_FAILED_EVENT")]
    public class MsgFailedEventBean
    {
        
        #region Private 成员
        private int _msg_failed_event_id=0; 
        private string _sender_account=String.Empty; 
        private string _failed_code=String.Empty; 
        private string _app_code=String.Empty; 
        private string _client_tx_seq=String.Empty; 
        private string _terminal_type=String.Empty; 
        private string _terminal_account=String.Empty; 
        private string _terminal_command=String.Empty; 
        private string _msg_type=String.Empty; 
        private string _msg_send_type=String.Empty; 
        private string _receiver_account_type=String.Empty; 
        private int _group=0; 
        private int _priority=0; 
        private string _level=String.Empty; 
        private string _msg_template=String.Empty; 
        private DateTime _create_time=new DateTime(1900,1,1); 
        private string _msg_title=String.Empty; 
        private string _msg_content=String.Empty;   

        #endregion
  
        
        #region Public 成员
   
        /// <summary>
        /// 属性名称：MsgFailedEventId
        /// 属性描述：
        /// 字段信息：[MSG_FAILED_EVENT_ID],int
        /// </summary>
        [Column(Name="MSG_FAILED_EVENT_ID"),ID,PK]
		public int MsgFailedEventId
        {
            get { return _msg_failed_event_id; }
            set
            {
            
                {
                    _msg_failed_event_id = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：SenderAccount
        /// 属性描述：
        /// 字段信息：[SENDER_ACCOUNT],nvarchar
        /// </summary>
        [Column(Name="SENDER_ACCOUNT")]
		public string SenderAccount
        {
            get { return _sender_account; }
            set
            {
            
                if(value==null)return;
                if (_sender_account as object == null || !_sender_account.Equals(value))
                {
                    _sender_account = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：FailedCode
        /// 属性描述：
        /// 字段信息：[FAILED_CODE],nvarchar
        /// </summary>
        [Column(Name="FAILED_CODE")]
		public string FailedCode
        {
            get { return _failed_code; }
            set
            {
            
                if(value==null)return;
                if (_failed_code as object == null || !_failed_code.Equals(value))
                {
                    _failed_code = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：AppCode
        /// 属性描述：
        /// 字段信息：[APP_CODE],nvarchar
        /// </summary>
        [Column(Name="APP_CODE")]
		public string AppCode
        {
            get { return _app_code; }
            set
            {
            
                if(value==null)return;
                if (_app_code as object == null || !_app_code.Equals(value))
                {
                    _app_code = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：ClientTxSeq
        /// 属性描述：
        /// 字段信息：[CLIENT_TX_SEQ],nvarchar
        /// </summary>
        [Column(Name="CLIENT_TX_SEQ")]
		public string ClientTxSeq
        {
            get { return _client_tx_seq; }
            set
            {
            
                if(value==null)return;
                if (_client_tx_seq as object == null || !_client_tx_seq.Equals(value))
                {
                    _client_tx_seq = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TerminalType
        /// 属性描述：
        /// 字段信息：[TERMINAL_TYPE],nvarchar
        /// </summary>
        [Column(Name="TERMINAL_TYPE")]
		public string TerminalType
        {
            get { return _terminal_type; }
            set
            {
            
                if(value==null)return;
                if (_terminal_type as object == null || !_terminal_type.Equals(value))
                {
                    _terminal_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TerminalAccount
        /// 属性描述：
        /// 字段信息：[TERMINAL_ACCOUNT],nvarchar
        /// </summary>
        [Column(Name="TERMINAL_ACCOUNT")]
		public string TerminalAccount
        {
            get { return _terminal_account; }
            set
            {
            
                if(value==null)return;
                if (_terminal_account as object == null || !_terminal_account.Equals(value))
                {
                    _terminal_account = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TerminalCommand
        /// 属性描述：
        /// 字段信息：[TERMINAL_COMMAND],nvarchar
        /// </summary>
        [Column(Name="TERMINAL_COMMAND")]
		public string TerminalCommand
        {
            get { return _terminal_command; }
            set
            {
            
                if(value==null)return;
                if (_terminal_command as object == null || !_terminal_command.Equals(value))
                {
                    _terminal_command = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgType
        /// 属性描述：
        /// 字段信息：[MSG_TYPE],nvarchar
        /// </summary>
        [Column(Name="MSG_TYPE")]
		public string MsgType
        {
            get { return _msg_type; }
            set
            {
            
                if(value==null)return;
                if (_msg_type as object == null || !_msg_type.Equals(value))
                {
                    _msg_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgSendType
        /// 属性描述：
        /// 字段信息：[MSG_SEND_TYPE],nvarchar
        /// </summary>
        [Column(Name="MSG_SEND_TYPE")]
		public string MsgSendType
        {
            get { return _msg_send_type; }
            set
            {
            
                if(value==null)return;
                if (_msg_send_type as object == null || !_msg_send_type.Equals(value))
                {
                    _msg_send_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：ReceiverAccountType
        /// 属性描述：
        /// 字段信息：[RECEIVER_ACCOUNT_TYPE],nvarchar
        /// </summary>
        [Column(Name="RECEIVER_ACCOUNT_TYPE")]
		public string ReceiverAccountType
        {
            get { return _receiver_account_type; }
            set
            {
            
                if(value==null)return;
                if (_receiver_account_type as object == null || !_receiver_account_type.Equals(value))
                {
                    _receiver_account_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Group
        /// 属性描述：
        /// 字段信息：[GROUP],int
        /// </summary>
        [Column(Name="GROUP")]
		public int Group
        {
            get { return _group; }
            set
            {
            
                {
                    _group = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Priority
        /// 属性描述：
        /// 字段信息：[PRIORITY],int
        /// </summary>
        [Column(Name="PRIORITY")]
		public int Priority
        {
            get { return _priority; }
            set
            {
            
                {
                    _priority = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Level
        /// 属性描述：
        /// 字段信息：[LEVEL],char
        /// </summary>
        [Column(Name="LEVEL")]
		public string Level
        {
            get { return _level; }
            set
            {
            
                if(value==null)return;
                if (_level as object == null || !_level.Equals(value))
                {
                    _level = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgTemplate
        /// 属性描述：
        /// 字段信息：[MSG_TEMPLATE],nvarchar
        /// </summary>
        [Column(Name="MSG_TEMPLATE")]
		public string MsgTemplate
        {
            get { return _msg_template; }
            set
            {
            
                if(value==null)return;
                if (_msg_template as object == null || !_msg_template.Equals(value))
                {
                    _msg_template = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：CreateTime
        /// 属性描述：
        /// 字段信息：[CREATE_TIME],datetime
        /// </summary>
        [Column(Name="CREATE_TIME")]
		public DateTime CreateTime
        {
            get { return _create_time; }
            set
            {
            
                {
                    _create_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgTitle
        /// 属性描述：
        /// 字段信息：[MSG_TITLE],nvarchar
        /// </summary>
        [Column(Name="MSG_TITLE")]
		public string MsgTitle
        {
            get { return _msg_title; }
            set
            {
            
                if(value==null)return;
                if (_msg_title as object == null || !_msg_title.Equals(value))
                {
                    _msg_title = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgContent
        /// 属性描述：
        /// 字段信息：[MSG_CONTENT],nvarchar
        /// </summary>
        [Column(Name="MSG_CONTENT")]
		public string MsgContent
        {
            get { return _msg_content; }
            set
            {
            
                if(value==null)return;
                if (_msg_content as object == null || !_msg_content.Equals(value))
                {
                    _msg_content = value;
                }
             }
        }
  
        #endregion 
  
    }
}
